﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="/static/css/common/reset.css" />
    <link rel="stylesheet" href="/static/css/associate.css" />
    <title>宾果高校</title>
</head>
<body>
    <div class="associate">
        <div id="divHeader"></div>
        <section class="assoc-content container clearfix">
            <div class="assoc-c-left fl">
               
                <div id="divNavigation"></div>
            </div>
            <div class="assoc-c-right fr" id="assocRight">
                <!--<iframe src="/associate/commuityinfo.html" frameborder="0" width="100%" scrolling="auto" height="1000px"></iframe>-->
            </div>
        </section>
    </div>
    <div id="divFooter"></div>
    <script type="text/javascript" src="/static/js/ref/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="/static/js/self/common.js"></script>

    <script>

        $(function () {

            var user = common.GetUserType();
            if (!common.checkValue(user))
                window.location = "/login.html";

            switch (user) {
                case 1:
                    window.location = "/company/company/companyInfo.html";
                    break;
                case 2:
                    window.location = "/personal/associate/commuityInfo.html";
                    break;
                case 3:
                    window.location = "/agent/agent/commuityInfo.html";
                    break;
            }

            $("#divHeader").load("/wuc/header.html");
            $("#divFooter").load("/wuc/footer.html");
            $("#divNavigation").load("/wuc/navigation.html");

            //页面右边内容部分加载
            //  $("#assocRight").load("associate/commuityInfo.html");
            

            //$(".assoc-clb-item a").on("click", function (e) {
            //    var self = $(this);
            //    var nameVal = self.attr('name');
            //    self.parent().siblings().find('a').removeClass('active');
            //    self.siblings().removeClass('active');
            //    self.addClass('active');
            //    $("#assocRight").load("./associate/" + nameVal + ".html");
            //});

            //登录框下拉
            $('.link-login').on('click', function (e) {
                var self = $(this);
                self.parent().siblings().find('a').removeClass('on');
                self.toggleClass('on');
            });
        });
    </script>
</body>
</html>
